package org.example.ims.Service.Order;

import org.example.ims.Entity.Order.TransferOrder;
import org.springframework.data.domain.Page;

import java.util.NoSuchElementException;

public interface TransferOrderService {


    TransferOrder createOrder(TransferOrder order);

    TransferOrder updateOrder(Integer orderId, TransferOrder updatedOrder) throws NoSuchElementException;

    void deleteOrder(Integer orderId) throws NoSuchElementException;

    TransferOrder getOrderById(Integer orderId) throws NoSuchElementException;

    Page<TransferOrder> getAllOrders(Integer page, Integer size);

    Page<TransferOrder> searchOrders(String status, Integer salesmanId,
                                     Integer sourceWarehouseId, Integer targetWarehouseId,
                                     Integer page, Integer size);

    void executeOrder(Integer orderId) ;
}